package log

import (
	"fmt"

	. "git.oschina.net/yangdao/extlib/data_type"
)

type ConsoleLogHandler struct {
}

func init() {
	AddLogHandlerCreateFunc("ConsoleLogHandler", func(config IAssociative) ILogHandler {
		return &ConsoleLogHandler{}
	})
}

func (this *ConsoleLogHandler) Log(tags string, logValue ...interface{}) {
	fmt.Print("[" + tags + "] ")
	fmt.Println(logValue...)
}

func (this *ConsoleLogHandler) Close() {

}
